package com.lapis17.stock.mapper;

import com.lapis17.stock.pojo.domain.StockUpdownDomain;
import com.lapis17.stock.pojo.entity.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author 13471
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2024-02-23 20:56:21
* @Entity com.lapis17.stock.pojo.entity.StockRtInfo
*/
public interface StockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockRtInfo record);

    int insertSelective(StockRtInfo record);

    StockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockRtInfo record);

    int updateByPrimaryKey(StockRtInfo record);


    List<StockUpdownDomain> getStockByTime(@Param("date") Date date);

    List<StockUpdownDomain> getStockInfoIncreaseByTime(@Param("date")Date date);

    List<Map> getUpDownCount(@Param("openDate") Date openDate, @Param("endDate") Date endDate, @Param("flag") int flag);

    List<Map> getStockRtUpDownCount(@Param("curDate") Date curDate);
}
